<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2018/1/5
 * Time: 14:48
 */

namespace App\Http\Logics\MiniProgramAdmin;


use App\EntryMenu;
use App\Http\Logics\BaseLogic;
class EntryMenuLogic extends BaseLogic
{
    public static function getEntryMenuList($data)
    {
        try{
            $entry_menu = EntryMenu::where('partner_id', $data['partner_id'])->get();
            if (empty($entry_menu)){
                return self::response(self::CONTENT_IS_EMPTY);
            }
            return self::response(self::SUCCESS, $entry_menu);
        }catch (\Exception $e){
            return self::response(self::SYSTEM_ERROR);
        }
    }
}